<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    console.log(1)
    function test() {
        console.log(2)
    }
    async function test2() {
        await test()
        console.log(3)  // 这一行跟微任务相似
    }
    test2()
    console.log(4)
</script>
</body>
</html>
